import{ADD} from './constans'

function add(num) {
    return {
        type:ADD,num
    }
}

function addAsync(num) {
    return (dispatch) => {
        setTimeout(() => {
            dispatch(add(num))
        })
    }
}
export {addAsync}